package com.sgl.gk.service;

import com.sgl.common.core.domain.AjaxResult;
import com.sgl.gk.controller.vo.SaveTemplateVo;
import com.sgl.gk.controller.vo.TemplateSaveParamInfosVo;
import com.sgl.gk.domain.GkStationConfigureTemplate;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface GkStationConfigureTemplateService {
    List<GkStationConfigureTemplate> list(GkStationConfigureTemplate gkStationConfigureTemplate);

    AjaxResult edit(GkStationConfigureTemplate gkStationConfigureTemplate);

    AjaxResult saveTemplate(SaveTemplateVo saveTemplateVo);

    AjaxResult selectInfoByTemplateId(Long productionLineId);

    AjaxResult removeByIds(Long[] ids);

    AjaxResult setParametersByTemplateId(Long templateId);

    AjaxResult editList(SaveTemplateVo saveTemplateVo);

    AjaxResult editConfiguration(TemplateSaveParamInfosVo templateSaveParamInfosVo);

    int removeByProductionLineIds(Long[] ids);

    AjaxResult setParametersByTemplateName(GkStationConfigureTemplate gkStationConfigureTemplate);

    AjaxResult getSaveParamByStationIdAndName(Long stationId, Long tempId);

    AjaxResult editTempInfoToUse(TemplateSaveParamInfosVo templateSaveParamInfosVo);

    void exportByTempName(String tempName, HttpServletResponse response);
}
